package com.slt.android.animation;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ListView;

public class MainActivity extends Activity {

    ListView lv;
    Button btn;
    String [] arry = new String[]{"java" , "html5" , "swfit" , "c#" , "c++" , "c" , "go" , "php" , "python"};
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        init();
    }

    private void init() {
        MyAdapter adapter = new MyAdapter(arry , this);
        lv.setAdapter(adapter);
    }

    private void initView() {
        lv = (ListView) findViewById(R.id.lv);
        btn = (Button) findViewById(R.id.btn);
    }
}
